function add(str,id){
    let text = str.innerHTML;
    alert(text);
    // console.log(id)
    if (id!=null && id!=undefined && id !=''){
        if (id<=5){
            console.log('id小于/等于5')
        }else {
            console.log('id大于5')
        }
    }else {
        console.log('id为空，请规范操作')
    }
}
